namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("PRODUCT_GROUPS")]
    public class PRODUCT_GROUPS : ObjectRow {
        
        public PRODUCT_GROUPS() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public PRODUCT_GROUPS(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PRODUCT_GROUPS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("GROUP_ID")]
        public int GROUPID {
            get {
                return (System.Int32)GetValue("GROUPID");
            }
            set {
                SetValue("GROUPID", value);
            }
        }
        
        [Key("PRODUCT_ID")]
        public int PRODUCTID {
            get {
                return (System.Int32)GetValue("PRODUCTID");
            }
            set {
                SetValue("PRODUCTID", value);
            }
        }
        
        [Field("UOMS")]
        public string UOMS {
            get {
                return (System.String)GetValue("UOMS");
            }
            set {
                SetValue("UOMS", value);
            }
        }
        
        [Field("QTY")]
        public int QTY {
            get {
                return (System.Int32)GetValue("QTY");
            }
            set {
                SetValue("QTY", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public long CREATETIME
        {
            get
            {
                return (long)GetValue("CREATETIME", DateTime.Now);
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
    }
}
